putItem

abstract fun putItem(key: String, value: String)

Adds the item with the specified key and value to the storage, or updates it if the item with the given key already exists.

Parameters

key

the key name of the item to put. Can be empty or blank

value

the value of the item to put. Can be empty or blank

Throws

when the frame is closed

when if the item size exceeds the available space in the storage

if the access to the storage is forbidden for the current document